 <?php
 if($this->images):
	 $baseUrl = $this->baseUrl();
	 $imgBaseUrl = $baseUrl.'/images/frames/';?>
	 <div id="galleriaTest" class="galleryYaron" >
		<ul class="gallery">
		<?php
		foreach($this->images as $image):
			$currentDirArr = explode('/', $image->path);
			$currentDir = $currentDirArr[0];
			echo '<li class="lst-product-list-item">';
			echo '<a href="'.$baseUrl.'/גלריית פרופילים/name/'.$currentDir.'" >';
			// picture:
			echo '	<div class="lst-product-list-product">';
			echo '	<img width="228" height="228"  src="'.$imgBaseUrl.$image->path.'" />';
			
			// caption:
			echo '  <div class="lst-product-caption"  style="bottom: 0px;">';
			echo $image->alt;
			echo '  </div>';
			
			echo '  </div>';
			
		 	echo '</a></li>';
		 	 
		endforeach; 
		 ?>
		 </ul>
		 
		 <br style="clear: both;" />
	</div><?php
endif;